package com.mmz.gulimall.product.dao;

import com.mmz.gulimall.product.entity.AttrEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品属性
 * 
 * @author yangzhenjiang
 * @email 1983337308@qq.com
 * @date 2020-07-28 14:37:45
 */
@Mapper
public interface AttrDao extends BaseMapper<AttrEntity> {

    /**
     * 查询参数集合中可被筛选的参数ID
     * @param attrIds 参数集合
     * @return
     */
    List<Long> selectSearchAttrs(@Param("attrIds") List<Long> attrIds);
}
